<template>
  <div class="detail-container">
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="登录账户设置" name="first"><loginSetting /></el-tab-pane>
      <el-tab-pane label="个人详情" name="second"><user-info /></el-tab-pane>
      <el-tab-pane label="岗位信息" name="third"><job-info /></el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import jobInfo from '@/components/Detail/job-info'
import loginSetting from '@/components/Detail/login-setting'
import userInfo from '@/components/Detail/user-info'
export default {
  name: 'Detail',
  components: {
    jobInfo,
    loginSetting,
    userInfo
  },
  data() {
    return {
      activeName: 'second'
    }
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event)
    }
  }
}
</script>

<style>

</style>
